package com.sxjh.entity.param;

import com.sxjh.entity.PageEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper=false)
public class UnloadLogListParam extends PageEntity {

  @ApiModelProperty("车号")
  private String vehNumber;

  @ApiModelProperty("车号ID")
  private Integer vehId;

  @ApiModelProperty("地磅单编号")
  private String number;

  @ApiModelProperty("ic卡号")
  private String icNumber;

  @ApiModelProperty("物料名称")
  private String materialName;

  @ApiModelProperty("物料ID")
  private Integer materialId;

  @ApiModelProperty("装货点名称")
  private String loadName;

  @ApiModelProperty("卸货点")
  private String unloadName;

  @ApiModelProperty("开始时间")
  @NotNull(message = "开始时间不能为空")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime startDate;

  @ApiModelProperty("结束时间")
  @NotNull(message = "结束时间不能为空")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime endDate;

}